﻿using System;
using System.Windows.Forms;

namespace WFCSharp_I
{
    public partial class UserDialog : Form
    {
        public string Hoten
        {
            get { return fulNameText.Text; }
        }

        public DateTime NgaySinh
        {
            get
            {
                return birthDayPicker.Value;
            }
        }

        public UserDialog()
        {
            InitializeComponent();
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
